.signup-modal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    background-color: transparent;
    display: none;
    z-index: 10000;
}

.signup-modal-content {
    background-color: #fff;
    width: 400px;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    box-sizing: border-box;
    min-height: 480px;
}

.signup-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 25px;
    text-align: left;
    padding-left: 5px;
}

/* 输入框组 */
.input-group {
    position: relative;
    margin-bottom: 18px;
}

/* 缩小“确认密码输入框 ↔ 发送验证码按钮”间距（仅第3个输入框组） */
.signup-form .input-group:nth-of-type(3) {
    margin-bottom: 0px;
}


.signup-input {
    width: 100%;
    padding: 15px;
    padding-right: 40px;
    border: 1px solid #777;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    color: #333;
    transition: border-color 0.3s;
}

.signup-input:focus {
    border-color: #333;
}

.signup-input.valid {
    border-color: #22c55e;
}

.signup-input.invalid {
    border-color: #ef4444;
}

.signup-input::placeholder {
    color: #888;
    font-size: 15px;
}

/* 输入状态图标 */
.input-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.input-status.valid::after {
    content: "✓";
    color: #22c55e;
}

.input-status.invalid::after {
    content: "✗";
    color: #ef4444;
}

/* 错误提示 */
.input-error {
    display: block;
    text-align: left;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
    padding-left: 5px;
}

/* 通用错误提示（隐私政策等）
   说明：固定高度占位，避免提示出现/消失时按钮位置跳动 */
.signup-general-error {
    display: block;
    text-align: center;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ef4444;
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
}

/* 按钮 */
.signup-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 15px;
    transition: all 0.3s;
}


.signup-submit-btn.loading {
    position: relative;
    color: transparent;
}

.signup-submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 政策复选框 */
.signup-policy {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.signup-policy input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.policy-link {
    color: #000;
    text-decoration: underline;
}

/* 底部登录链接 */
.signup-footer {
    font-size: 14px;
    color: #333;
    text-align: center;
    margin-top: 20px;
}

.login-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.login-link:hover {
    text-decoration: underline;
}

/* 验证码输入框 */
.verify-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    text-align: left;
}

.verify-hint span {
    color: #000;
    font-weight: bold;
}

.code-input-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.code-input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.code-input:focus {
    border-color: #000;
}

.code-input.filled {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

/* 重发验证码 */
.resend-section {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.resend-link {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}

.back-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.back-link:hover {
    color: #000;
}

/* 成功页面 */
.success-icon {
    width: 80px;
    height: 80px;
    background-color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 25px;
    font-size: 40px;
    color: #fff;
}

.success-title {
    text-align: center !important;
}

.success-hint {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.success-hint span {
    color: #000;
    font-weight: bold;
}
